import jfRequest from "../../index";
import { IResultType } from "types/request";
import LocalCache from "@/utils/cache";

export function getRecordByUseCode(data: any) {
  const orgCode = LocalCache.getCache("orgCode");
  return jfRequest.post<IResultType<any>>({
    url: "/api/v1/patrol/inspection/getRecordByUseCode",
    data: { ...data, orgCode: orgCode },
  });
}

export function getDetail(id: string) {
  return jfRequest.get<any>({
    url: "/api/v1/wage/" + id,
  });
}
